package com.zmn.oms.dubbo.interfaces.factory;

import com.zmn.common.dto2.ResponseDTO;
import com.zmn.oms.common.dio.factory.order.FactoryOrderWorkAddDIO;
import com.zmn.oms.dubbo.dto.zmn.order.NewOrderDRO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;

/**
 * 类描述：厂商订单
 *
 * @author liuying
 * @date 2021-03-31
 */
@Api(
        value = "厂商工单",
        tags = {"厂商工单"}
)
public interface FactoryOrderWorkModifyRemoteService {

    @ApiOperation(
            value = "新增厂商工单",
            response = ResponseDTO.class,
            tags = {"厂商工单"}
    )
    ResponseDTO<NewOrderDRO> addOrder(@NotNull(message = "入参不能为空") @ApiParam(value = "入参", required = true)
                                                                FactoryOrderWorkAddDIO factoryOrderAddDIO);

}